//
//  main.m
//  oc_16
//
//  Created by 楼楚 on 15/9/14.
//  Copyright (c) 2015年 Chu Lou. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
     NSString *str = @"hello world";
        NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding];
//        data.bytes
        NSLog(@"%@",data);
        
        NSString *str1 = [[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];
        
        NSLog(@"%@",str1);
    }
    return 0;
}
